package org.raccoon.sequence.core.factory;

import org.raccoon.sequence.core.entity.Sequence;
import java.util.Set;

/**
 * Sequence 生产标准 -- [就眠仪式]
 * */
public interface SequenceFactory {

    /**
     * 获取 ID
     * */
    public long makeId();

    /**
     * 批量获取 ID
     * */
    public Set<Long> makeId(int batchSize);

    /**
     * 获取 Sequence Id
     * */
    public Sequence makeSequence();

    /**
     * 批量获取 Sequence Id
     * */
    public Set<Sequence> makeSequence(int batchSize);
}
